import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class BotaoBeep extends JFrame {
	public JButton beep = new JButton ("Beep");
	private Toolkit toolkit = getToolkit();
	
	public BotaoBeep () {
		this.beep.setBounds(300, 350, 160, 30);
		this.beep.setToolTipText("Precione para ouvir um 'beep'");
		this.beep.addActionListener(new ActionListener() {
	           public void actionPerformed(ActionEvent event) {
	        	   toolkit.beep();
	          }
	       });
	}
	
	
	

}
